<template>
	<view>
		<view class="tab-box">
			<view class="tab-row">
				<view class="tab-item checkPending" @click="jump('checkPending')">
					<image class="icon" src="/static/image/index/wait_order_icon.png" mode="aspectFit"></image>
					<view class="title">
						待审核
					</view>
				</view>
				<view class="tab-item salesOrder" @click="jump('salesOrder')">
					<image class="icon salesOrder-icon" src="/static/image/index/release_icon.png" mode="aspectFit"></image>
					<view class="title">
						销售订单
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import * as api from '@/utils/api.js';
	export default {
		data() {
			return {
				list:{},
			}
		},
		mounted() {
			this.purchasestatus();
		},
		methods: {
			/**
			 * 采购管理状态
			 */
			purchasestatus:function(){
				// api.purchasestatus({}).then(res=>{
				// 	this.list = res.data;
				// });
			},
			jump:function(type){
				if(type == 'checkPending'){
					uni.navigateTo({
						url: '/subcontractList/order/salesAdmin/checkPending/index'
					});
				}else if(type == 'salesOrder'){
					uni.navigateTo({
						url: '/subcontractList/order/salesAdmin/salesOrder/index/index'
					});
				}
			},
		}
	}
</script>

<style lang="scss" scoped>
	.tab-box{
		width: calc(100% - 40rpx);
		margin: 0 20rpx;
		.tab-row{
			margin:20rpx 0;
			display: flex;
			.tab-item{
				width: calc(100% / 3 - 20rpx);
				padding: 20rpx 0;
				border-radius: 20rpx;
				margin-right:20rpx;
				position: relative;
				.icon{
					display: block;
					width:120rpx;
					height:120rpx;
					margin:10rpx auto;
				}
				.salesOrder-icon{
					width: 90rpx;
					height: 90rpx;
					margin-top:30rpx;
					margin-bottom:20rpx;
				}
				.title{
					text-align: center;
					color: white;
					padding: 20rpx 0;
					font-size: 24rpx;
				}
				
			}
			.rot{
				color: white;
				background-color: red;
				position: absolute;
				font-size: 24rpx;
				padding: 0 10rpx;
				border-radius: 30rpx;
				right:20rpx;
				top: 20rpx;
			}
		}
	}
	.checkPending{
		background-color: #eec461;
	}
	.salesOrder{
		background-color: #8ac7de;
	}
</style>
